<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/common/taglibs.jsp"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
	<meta charset="utf-8">
	<title>客户信息</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" href="${ctxLayui}/layuiadmin/layui/css/layui.css" media="all">
	<link rel="stylesheet" href="${ctxLayui}/layuiadmin/style/myStyle.css" media="all">
</head>
<body>
<div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 10px 0 0;">
	<script id="formTpl" type="text/html">

		<div class="layui-form-item-my" >
			<label class="layui-form-label">客户编号</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.customerNo}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">名称</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.name}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">信用代码</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.creditCode}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">注册时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.issueTime}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">法人</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.faRen}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">注册资金 (万元 )</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.regMoney}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">客户类型Id</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.customerTypeId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">客户类型</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.customerType}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">公司分类Id</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.companyCattegoryId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">公司分类</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.companyCattegory}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">所属行业Id</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.industryId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">所属行业</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.industry}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">纳税人类型;1-一般;2-小规模</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.taxpayerType}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">详细地址</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.address}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">联系人</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.contacts}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">固定电话</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.telephone}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">移动电话</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.mobile}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">邮箱</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.email}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">微信号</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.wechatNo}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">QQ</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.qq}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">客户网址</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.website}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">部门</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.department}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">部门Id</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.departmentId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">归属用户Id</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.userId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">归属用户名称</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.userName}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">区域</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.region}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">区域Id</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.regionId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">省份代码</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.provinceCode}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">省份名称</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.provinceName}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">城市代码</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.cityName}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">城市代码</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.cityCode}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">区域名称</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.areaName}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">区域代码</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.areaCode}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">意向度Id</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.intentionId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">意向度</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.intention}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">意向时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.intentionTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">标签</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.labels}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">决策类型Id</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.decisionTypeId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">决策类型</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.decisionType}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">标记;1-空号;2-错号;3-同行</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.tagStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">标记状态;1-未审核;2-已审核</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.tagStatusStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">释放人Id</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.releaseId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">释放时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.releaseTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">释放类型;1-个人;2-系统</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.releaseTypeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">预约拜访时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.nextVisitTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">最后拜访内容</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.lastVisit}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">最后拜访时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.lastVisitTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">拜访状态1-未拜访;2-已拜访</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.visitStatusStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">拜访次数</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.visitTimesStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">总呼叫次数</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.totalCallTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">最后通话时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.lastCallTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">签约人</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.signId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">财税顾问</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.adviserId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">采集人</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.gatherId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">数据来源Id</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.dataSourceId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">数据来源</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.dataSource}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">入库时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.addTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">保护状态;1-未保护;2-已保持</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.protectStatusStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">保护时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.protectTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">签约状态;1-未签约;2-签约中;3-已签约;</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.signStatusStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">会计状态;1-无;2-个人;3-公司;4- 外包</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.accountTypeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">类型;1-客户;2-团队;3-公海;4-失效</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.typeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">推荐客户ID</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.recommendId}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">推荐客户名</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.recommendName}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">状态;1-正常;2-失效</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.statusStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">创建时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.createTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">修改时间</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.modifyTimeStr}}</div>
			</div>
		</div>
		<div class="layui-form-item-my" >
			<label class="layui-form-label">备注描述</label>
			<div class="layui-input-block">
				<div class="layui-form-mid">{{d.remark}}</div>
			</div>
		</div>
	</script>
	<div id="form_view"></div>

</div>

<script src="${ctxLayui}/layuiadmin/layui/layui.js"></script>
<script>
	layui.config({
		base: '${ctxLayui}/layuiadmin/'
	}).extend({
		index: 'lib/index'
	}).use(['index', 'form','dict','laytpl','util'], function(){
		var $ = layui.$ ,form = layui.form;
		var dict = layui.dict;
		var laytpl = layui.laytpl;
		var util = layui.util;
		var formData = window.parent.formData;
		formData.intentionTimeStr = formData.intentionTime?util.toDateString(formData.intentionTime):'';
		formData.tagStr = formData.tag?dict.showName("tag",formData?formData.tag:1):'';
		formData.tagStatusStr = formData.tagStatus?dict.showName("tagStatus",formData?formData.tagStatus:1):'';
		formData.releaseTimeStr = formData.releaseTime?util.toDateString(formData.releaseTime):'';
		formData.releaseTypeStr = formData.releaseType?dict.showName("releaseType",formData?formData.releaseType:1):'';
		formData.nextVisitTimeStr = formData.nextVisitTime?util.toDateString(formData.nextVisitTime):'';
		formData.lastVisitTimeStr = formData.lastVisitTime?util.toDateString(formData.lastVisitTime):'';
		formData.visitStatusStr = formData.visitStatus?dict.showName("visitStatus",formData?formData.visitStatus:1):'';
		formData.visitTimesStr = formData.visitTimes?dict.showName("visitTimes",formData?formData.visitTimes:1):'';
		formData.totalCallTimeStr = formData.totalCallTime?dict.showName("totalCallTime",formData?formData.totalCallTime:1):'';
		formData.lastCallTimeStr = formData.lastCallTime?util.toDateString(formData.lastCallTime):'';
		formData.addTimeStr = formData.addTime?util.toDateString(formData.addTime):'';
		formData.protectStatusStr = formData.protectStatus?dict.showName("protectStatus",formData?formData.protectStatus:1):'';
		formData.protectTimeStr = formData.protectTime?util.toDateString(formData.protectTime):'';
		formData.signStatusStr = formData.signStatus?dict.showName("signStatus",formData?formData.signStatus:1):'';
		formData.accountTypeStr = formData.accountType?dict.showName("accountType",formData?formData.accountType:1):'';
		formData.typeStr = formData.type?dict.showName("type",formData?formData.type:1):'';
		formData.statusStr = formData.status?dict.showName("status",formData?formData.status:1):'';
		formData.createTimeStr = formData.createTime?util.toDateString(formData.createTime):'';
		formData.modifyTimeStr = formData.modifyTime?util.toDateString(formData.modifyTime):'';
		var data = formData;
		var getTpl = formTpl.innerHTML,view = document.getElementById('form_view');
		laytpl(getTpl).render(data, function(html){
			view.innerHTML = html;
		});
	})
</script>
</body>
</html>
